<template>
  <div id="app">
    <router-view />
    <van-tabbar v-model="active">
      <van-tabbar-item replace to="/home" icon="comment-o">长者动态</van-tabbar-item>
      <van-tabbar-item replace to="/hos" icon="friends-o">医养结合</van-tabbar-item>
      <van-tabbar-item replace to="/service" icon="cart-o">孝心服务</van-tabbar-item>
      <van-tabbar-item replace to="/user" icon="user-o">用户中心</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
  created(){
     this.$router.push('/home')
  },
  methods:{

  }
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
</style>